package com.gzk.oeno.ihm.opinion;

import javax.swing.JComponent;

import com.gzk.oeno.tech.ui.sliders.CustomizableNullableSlider;

public class RateSlider extends CustomizableNullableSlider{

	public RateSlider() {
		super(2, 10);
	}

	@Override
	protected JComponent createLabelForIndex(Integer index) {
		if (index.intValue() % 2 == 0){
			return OpinionUIUtils.buildShortRateLabel(index.intValue(), 5, 10);
		}
		return null;
	}

	@Override
	protected void updateComponentUIWhenEnabled(JComponent comp, boolean enabled) {
	}

}
